package com.xiaoshuidi.cloud.framework.systemevent.core;

import com.xiaoshuidi.cloud.framework.systemevent.core.data.LeaseSystemEventBooking;
import com.xiaoshuidi.cloud.framework.systemevent.core.data.LeaseSystemEventBookingCancel;
import com.xiaoshuidi.cloud.framework.systemevent.core.data.LeaseSystemEventMobileModify;
import com.xiaoshuidi.cloud.framework.systemevent.core.data.LeaseSystemEventNewSign;

/**
 * 系统事件
 */
public enum LeaseSystemEventTypeEnum {
    BOOKING("房源预定", LeaseSystemEventBooking.class),
    BOOKING_CANCEL("房源预定取消", LeaseSystemEventBookingCancel.class),

    MOBILE_MODIFY("修改手机号", LeaseSystemEventMobileModify.class),
    NEW_SIGN("新签", LeaseSystemEventNewSign.class);

    private final String desc;
    private final Class<? extends LeaseSystemEventData> eventDataClass;

    LeaseSystemEventTypeEnum(String desc, Class<? extends LeaseSystemEventData> eventDataClass) {
        this.desc = desc;
        this.eventDataClass = eventDataClass;
    }

    public String getDesc() {
        return desc;
    }

    public Class<? extends LeaseSystemEventData> getEventDataClass() {
        return eventDataClass;
    }
}
